package shuati.jd2023;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author : LdLtd
 * @Date : 2023/10/28
 * @Description:
 */

public class jd03 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long x = scanner.nextLong();
        long y = scanner.nextLong();

        List<String> operations = findOperations(x, y);

        if (operations.isEmpty()||operations.size()>1000) {
            System.out.println("-1");
        } else {
            System.out.println(operations.size());
            for (String op : operations) {
                System.out.println(op);
            }
        }
    }

    public static List<String> findOperations(long x, long y) {
        List<String> operations = new ArrayList<>();

        while (x != y) {
            if (x < y) {
                long diff = y - x;
                long lowestSetBit = diff & -diff;
                operations.add("+" + lowestSetBit );
                x += lowestSetBit;
            } else {
                long diff = x - y;
                long lowestSetBit = diff & -diff;
                operations.add("-" + lowestSetBit);
                x -= lowestSetBit;
            }
        }
        return operations;
    }
}

